Account Management Biz Api

(0 reviews)

GET-billingAccountById(Digital To Salesforce)

Get

This operation allows retrieve the billing account information.

Request

This section defines all the possible data structures sent by the client when consuming the method.

URL

https://[localhost]:[port]/sfdc-sys/v1/{businessId}/billingAccount/{id}

URL PARAMS

nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit.
Expected one is "PR"-Puerto Rico
Y
idstringBilling Account NumberY
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringAn identifier for the current call chain that can be used to tie together log entries on multiple layers (e.g. client, server, mainframe). This identifier must be designed to be unique across all applications.
Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API request
Y

Query Param

nametypedescriptionrequired
extendedCharacteristics.namestringName of the characteristic to search. Could be different, depending on the use case.
For Peacock Mobile Project the value is sourceSystem".
Y
extendedCharacteristics.valuestringThe value of the characteristic.
For Peacock Mobile Project the values must be Digital
Y

Response

In this section all the possible data structures received by the client at the moment of responding the method are defined.

Possible response success

This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.

[ 200 ]

OK - list request processed successfully, response body contains an entity corresponding to the requested resource.

{
    "id": "1230495-0039947",
    "href": "https://cwc--dvcpeacpro.sandbox.lightning.force.com/0014C00000pP3EhQAK",
    "ratingType": "Postpaid",
    "name": "billing account name",
    "state": "Active",
    "characteristic": [
        {
            "value": "Y",
            "name": "autoPaymentEnabled"
        }
    ],
    "contact": [
        {
            "contactType": "BillingAddress",
            "contactMedium": [
                {
                    "preferred": true,
                    "characteristic": {
                        "city": "Guaynabo",
                        "country": "US",
                        "postCode": "00969",
                        "stateOrProvince": "PR",
                        "street1": "35 Avenida Juan Carlos de Borbón"
                    }
                }
            ]
        },
        {
            "contactType": "customerAccount",
            "contactMedium": [
                {
                    "preferred": true,
                    "characteristic": {
                        "city": "Guaynabo",
                        "country": "US",
                        "postCode": "00969",
                        "stateOrProvince": "PR",
                        "street1": "35 Avenida Juan Carlos de Borbón"
                    }
                }
            ],
            "relatedParty": {
                "id": "0039947",
                "name": "customer account 1",
                "@type": "CustomerAccountRef"
            }
        },
        {
            "name": "contact 1",
            "contactType": "Primary",
            "contactMedium": [
                {
                    "preferred": true,
                    "characteristic": {
                        "city": "Guaynabo",
                        "country": "US",
                        "postCode": "00969",
                        "stateOrProvince": "PR",
                        "street1": "35 Avenida Juan Carlos de Borbón",
                        "phoneNumber": "2883789299",
                        "emailAddress": "test@lcpr.com"
                    }
                }
            ]
        }
    ],
    "paymentPlan": [
        {
            "paymentMethod": {
                "id": "a6I4C000000ATc0UAG"
            },
            "extendedCharacteristics": [
                {
                    "name": "methodType",
                    "value": "BrainTreeToken"
                },
                {
                    "name": "externalCustomerIdentifier",
                    "value": "686497930"
                },
                {
                    "name": "token",
                    "value": "cGF5bWVudG1ldGhvZF9jY184cnpwNHBib"
                },
                {
                    "name": "externalPaymentMethodIdentifier",
                    "value": "1"
                },
                {
                    "name": "isPrimary",
                    "value": "Y"
                }
            ]
        }
    ],
    "billStructure": {
        "presentationMedia": [
            {
                "name": "Electronic Bill"
            }
        ]
    },
    "@type": "BillingAccount",
    "relatedParty": [
        {
            "id": "a6I4C000000ATc0UAG",
            "@type": "SalesforceBillingAccountRef"
        },
        {
            "id": "12345",
            "role": "CustomerSecurity",
            "@type": "ConsumerPIN"
        }
    ]
}
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
idstringBilling Account Number (Salesforce Record Id)N
hrefstringURL reference of the billing account in SalesforceN
ratingTypestringpayment type of the billing account and the options are:
Prepaid
Postpaid
N
namestringname of the billing accountN
statestringStatus of the account:
Active
Suspend
Disconnected
N
autopayEnabledstringindicator of the Auto Pay enabledN
extendedCharacteristicsarrayA list of characteristics that characterize this billingAccountN
extendedCharacteristics.namestringName of the characteristicN
extendedCharacteristics.valuestringThe value of the characteristicN
contactarrayContact point for a given account and accessed via some contact medium.N
contact.partyRoleTypestringIdentifies what kind of party role type is linked to the contactN
contact.contactMediumarrayIndicates the contact medium that could be used to contact the party.N
contact.contactMedium.preferredbooleanIf true, indicates that is the preferred contact medium.N
contact.contactMedium.characteristicobjectAny additional characteristic(s) of this contact medium.N
contact.contactMedium.characteristic.citystringThe cityN
contact.contactMedium. characteristic.countrystringThe countryN
contact.contactMedium. characteristic.postCodestringPostcodeN
contact.contactMedium. characteristic.stateOrProvincestringState or provinceN
contact.contactMedium. characteristic.street1stringDescribes the streetN
contact.contactMedium. characteristic.phoneNumberstringphone number of the customerN
contact.contactMedium. characteristic.emailAddressstringemail address of the customerN
contact.relatedPartyobjectRelated Entity referenceN
contact.relatedParty.idstringCustomer Account Number (Salesforce Record Id)N
contact.relatedParty.namestringname of the Customer accountN
contact.relatedParty.@typestringtype of referenceN
contact.namestringname of the contactN
paymentPlanarrayA list of payment plansN
paymentPlan.paymentMethodobjectA payment method referenceN
paymentPlan.paymentMethod.idstringinternal reference id of the payment method in SalesforceN
paymentPlan.extendedCharacteristicsarrayA list of characteristics that characterize the payment method detailsN
paymentPlan.extendedCharacteristics.namestringName of the characteristicN
paymentPlan.extendedCharacteristics.valuestringValue of the characteristicN
@typestringType of the referenceN
relatedPartyarrayRelated Entity referenceN
relatedParty.idstringSalesforce reference Id of the billing accountN
relatedParty.@typestringReferencetypeN
relatedParty.idstringconsumerPIN valueN
relatedParty.rolestringrole of the partyN
relatedParty.@typestringReference typeN

Reviews